import request from '@/utils/request';

// 获取列表
export function listData(query) {
  return request({
    url: `/room/sound-effect${query}`,
    method: 'get',
  });
}

export function listTypeData() {
    return request({
      url: `/room/typearr`,
      method: 'get',
    });
  }

// 获取参数配置类型
export function getConfigTypeList(){
    return request({
      url:`/room/sound-effect`,
      method:'get'
    })
  }
  
  // 创建
  export function postAddData(form){
    return request({
      url:`/room/sound-effect`,
      method:'post',
      data:form
    })
  }
  
  // 修改
  export function putEditData(id,form){
    return request({
      url:`/room/sound-effect/${id}`,
      method:'put',
      data:form
    })
  }
  
  // 删除
  export function deleteData(form){
    return request({
      url:`/room/sound-effect`,
      method:'delete',
      data:form
    })
  }